public class jushape extends Shape{
    public double b1;
    public double b2;

    public jushape(double b1, double b2) {
        this.b1 = b1;
        this.b2 = b2;
    }

    @Override
    public void C() {
        System.out.println("矩形周长为：" + (b1+b2) * 2);
    }

    @Override
    public void S() {
        System.out.println("矩形面积为：" + b1 * b2);
    }
}
